package com.demo.service;


import java.util.List;

import com.demo.entity.po.DeviceApply;

import com.demo.entity.query.DeviceApplyQuery;

import com.demo.entity.vo.PaginationResultVO;

/**
 * @Description:service
 * @Date:2025-03-11
 * @author：author
*/
public interface DeviceApplyService{

	/**
	 * 根据条件查询列表
	 */
	List<DeviceApply> findListByParam(DeviceApplyQuery query);

	/**
	 * 根据条件查询数量
	 */
	Integer findCountByParam(DeviceApplyQuery query);

	/**
	 * 分页查询
	 */
	PaginationResultVO<DeviceApply> findListByPage(DeviceApplyQuery  query);

	/**
	 * 新增
	 */
	Integer  add(DeviceApply bean);

	/**
	 * 批量新增
	 */
	Integer  addBatch(List<DeviceApply> listBean);

	/**
	 * 批量新增或者修改
	 */
	Integer  addOrUpdateBatch(List<DeviceApply> listBean);


	/**
	 * 根据DeviceApplyId查询
	 */
	DeviceApply getDeviceApplyByDeviceApplyId(Integer deviceApplyId);

	/**
	 * 根据DeviceApplyId更新
	 */
	Integer updateDeviceApplyByDeviceApplyId(DeviceApply bean, Integer deviceApplyId);

	/**
	 * 根据DeviceApplyId删除
	 */
	Integer deleteDeviceApplyByDeviceApplyId(Integer deviceApplyId);

	/**
	 * 保存申请信息
	 * @param bean
	 */
    void saveApply(DeviceApply bean);


	void updateStatus(Integer applyId, Integer status);
}